<?php
declare(strict_types=1);

namespace App\Resource\LotteryCrystal\Draw;


use Illuminate\Http\Resources\Json\JsonResource;

class Resource extends JsonResource
{
    public function toArray($request)
    {
        return [
            "id" => $this->prize->reward->id,
            "name" => $this->prize->reward->name,
            "icon" => $this->prize->reward->picture,
            "coin" => $this->prize->reward->price,
            "count" => $this->count,
            "crit" => $this->crit,
            "prize_id" => $this->prize->id,
        ];
    }
}